package com.sundi.ecmarket.mapper;

import com.sundi.ecmarket.dto.CategoryDto;
import com.sundi.ecmarket.entity.EcCategory;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.sundi.ecmarket.vo.CategoryVo;

import java.util.List;

/**
 * <p>
 * 类目表 Mapper 接口
 * </p>
 *
 * @author Mht
 * @since 2020-02-23
 */
public interface EcCategoryMapper extends BaseMapper<EcCategory> {

    List<CategoryVo> selectCateList(CategoryDto categoryDto);

    boolean deleteByCate(Integer id);

    List<EcCategory> selectParentList(CategoryDto categoryDto);

    int selectMaxId();
}
